package com.ldc.message.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter

class MessageFragmentAdapter(ac: FragmentActivity, dataList: MutableList<Fragment>) :
    FragmentStateAdapter(ac) {
    private val fragmentList: MutableList<Fragment> = dataList
    override fun getItemCount(): Int = fragmentList.size

    override fun createFragment(position: Int): Fragment = fragmentList[position]
}